package org.CSL.app.platform.domain.admin;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 角色实体
 * 
 * @version 1.0
 */

public class Role implements Serializable {

	private static final long serialVersionUID = -3455981107316528721L;

	private String roleCode;
	/** 角色名称 */
	private String roleName;
	/** 备注 */
	private String remark;
	/** 创建日期 */
	private Date createDate;
	/** 创建人 */
	private User creater;

	// 角色与用户存在多对多关联

	private Set<User> users = new HashSet<User>(0);
	
	// 角色与权限存多对多关联
	private Set<Privilege> privileges = new HashSet<Privilege>(0);
	
	/**角色与用户组多对多*/
	private Set<UserGroup> userGroups = new HashSet<UserGroup>(0);

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public User getCreater() {
		return creater;
	}

	public void setCreater(User creater) {
		this.creater = creater;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	public Set<Privilege> getPrivileges() {
		return privileges;
	}

	public void setPrivileges(Set<Privilege> privileges) {
		this.privileges = privileges;
	}

	public Set<UserGroup> getUserGroups() {
		return userGroups;
	}

	public void setUserGroups(Set<UserGroup> userGroups) {
		this.userGroups = userGroups;
	}
    
	
}